package com.dmall.promotion.core.service;

import org.springframework.stereotype.Service;

/**
 * @author: xiao1.wang
 * @date: 2021/6/4 21:18
 */
@Service
public class CalculateService {

    public int calculateAddition(int start, int end) {
        int sum = end;
        for (int i = start; i < end; i++) {
            sum += i;
        }
        return sum;
    }
}
